package com.ly.ymall.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: LIMING
 * @Date: 2019/2/27 02:09
 * @Description: 页面跳转
 */
@Controller
public class PageController {

     /**
      *  欢迎页
      */
    @RequestMapping("/{page}")
    public String index(@PathVariable String page){
        return "views/" + page;
    }

    /**
     * 控制台 跳转页面
     */
    @RequestMapping("/{url}/{page}")
    public String artPage(@PathVariable String url,@PathVariable String page){
        return "views/"+ url  + "/" + page;
    }

}
